#pragma once

#include "../mfcwpfdll/stdafx.h"
#include "ECGXmlParser.h"
#include "DCPlus.h"
#include "MFCWPFAttributes.h"

class CMFCWPFElement
{
public:
	CMFCWPFElement(void);
	virtual ~CMFCWPFElement(void);

	virtual void Parse(const CString & szPath, CECGXmlParser * pXamlParser, const CRect & oRect);
	virtual bool DrawSelf(CDCPlus * pCDCPlus);
	virtual CMFCWPFElement * MouseLeftButtonUp(int nFlags, const CPoint & oPoint);
	CString GetElementType();
	CString GetElementName();
	bool GetItems(vector<CString> & szVec);

protected:
	CString m_szType;
	CMFCWPFAttributes m_oAttributes;

	bool IsEnabled();
	bool IsVisible();
};
